#include "Token.h"

namespace FlooP
{
	Token::Token ()
	:
		m_type (NONE),
		m_text (""),
		m_number (0)
	{}

	Token::Token (Type type)
	:
		m_type (type),
		m_text (""),
		m_number (0)
	{}

	Token::Token (Type type, std::string text)
	:
		m_type (type),
		m_text (text),
		m_number (0)
	{}

	Token::Token (Type type, uint32_t number)
	:
		m_type (type),
		m_text (""),
		m_number (number)
	{}

	Token::Type Token::type () const
	{
		return m_type;
	}

	const std::string& Token::text () const
	{
		return m_text;
	}

	uint32_t Token::number () const
	{
		return m_number;
	}
}